﻿
namespace PS.DataTypes
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Connection : IConnection
    {
        #region Fields

        private readonly float cost;
        private readonly int fromNode;
        private readonly int toNode;

        #endregion

        #region Constructors

        public Connection(int fromNode, int toNode, float cost)
        {
            this.fromNode = fromNode;
            this.toNode = toNode;
            this.cost = cost;
        }

        #endregion

        #region Properties

        public float Cost
        {
            get
            {
                return cost;
            }
        }

        public int FromNode
        {
            get
            {
                return fromNode;
            }
        }

        public int ToNode
        {
            get
            {
                return toNode;
            }
        }

        #endregion
    }
}
